package com.example.agent_springai.entity.query;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.ai.tool.annotation.ToolParam;

import java.util.List;
import java.util.Map;

@Data
public class DrawChartQuery {

    @ToolParam(description = "图表类型：line(折线图), pie(饼图), bar(柱状图)，默认为line")
    private String type = "line";

    @ToolParam(description = "图表数据，必须是数组：[{time, value, group}, ...]，例如：[{\"time\":\"2025-01-02\",\"value\":48.25,\"group\":\"发电机5\"}]")
    private List<Map<String, Object>> data;

    @ToolParam(description = "图表主题，默认为default")
    private String theme = "default";

    @ToolParam(description = "图表样式，对象格式：{lineWidth, backgroundColor, ...}")
    private Map<String, Object> style;

    @ToolParam(description = "图表宽度，默认为600")
    private Integer width = 600;

    @ToolParam(description = "图表高度，默认为400")
    private Integer height = 400;

    @ToolParam(description = "图表标题，不能为空")
    private String title;
}